package com.glor.operation.common.user.entity;

import com.glor.operation.common.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by heylear.cai on 2016/2/18.
 */
@Entity
@Table(name = "tt_sys_user")
@Data
public class UserEntity extends BaseEntity {
    /**
     * 用户名
     */
    @Column(name = "username")
    String username;

    /**
     * 真实姓名
     */
    @Column(name = "full_name")
    String fullname;

    /**
     * 权限列表，用逗号隔开
     */
    @Column(name = "authorities")
    String authorities;

    /**
     * 密码
     */
    @Column(name = "passwd")
    String passwd;

    /**
     * 0:未启用 1:启用
     */
    @Column(name = "user_flag")
    Integer userFlag;
}
